package cn.prophet.controller;

import cn.prophet.service.OrderService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.Map;
@RequestMapping("order")
@Controller
public class OrderController {
    @Resource
    private OrderService orderService;
    @GetMapping("undoOrder")
    @ResponseBody
    public Map<String, String> unDoOrder(@RequestParam(value = "orderIds",required = true) String orderIds){

        return orderService.unDoOrder(orderIds);
    }
}
